package com.lcq.demo.common.entity;

import lombok.Data;

/**
 * @author 240701005
 */
@Data
public class PageInfo {

    private Integer pageNum = 1;

    private Integer pageSize = 10;

    public Integer getPageNum() {
        if (pageNum == null || pageNum < 1) {
            return 1;
        }
        return pageNum;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize < 1) {
            return 20;
        }
        return pageSize;
    }
}
